package com.wd.mylibrary_base.socket;

import okhttp3.WebSocket;
import okio.ByteString;

/**
 * @Title:
 * @ClassName: com.wd.base.utils.socket.wsmanager.IWsManager.java
 * @author: lowrance
 * @date:  2022/9/21 18:02
 * @Description:    WebSocket的管理
 *
 */
interface IWsManager {

  WebSocket getWebSocket();

  void startConnect();

  void stopConnect();

  boolean isWsConnected();

  int getCurrentStatus();

  void setCurrentStatus(int currentStatus);

  boolean sendMessage(String msg);

  boolean sendMessage(ByteString byteString);
}
